package cug.hexy.liteflowdemo;

import com.yomahub.liteflow.core.FlowExecutor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class LiteflowDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(LiteflowDemoApplication.class, args);

        FlowExecutor flowExecutor = context.getBean(FlowExecutor.class);
        flowExecutor.execute2Resp("chain1", "arg");
    }

}
